package com.ruoyi.course.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 章节对象 chapter
 * 
 * @author ruoyi
 * @date 2024-01-27
 */
public class Chapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 章节id */
    private Long chapterId;

    /** 章节名字 */
    @Excel(name = "章节名字")
    private String chapterName;

    /** 章节描述 */
    @Excel(name = "章节描述")
    private String chapterDesc;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;

    public void setChapterId(Long chapterId) 
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId() 
    {
        return chapterId;
    }
    public void setChapterName(String chapterName) 
    {
        this.chapterName = chapterName;
    }

    public String getChapterName() 
    {
        return chapterName;
    }
    public void setChapterDesc(String chapterDesc) 
    {
        this.chapterDesc = chapterDesc;
    }

    public String getChapterDesc() 
    {
        return chapterDesc;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chapterId", getChapterId())
            .append("chapterName", getChapterName())
            .append("chapterDesc", getChapterDesc())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("courseId", getCourseId())
            .toString();
    }
}
